﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using CRMClient.Resources;

namespace CRMClient
{
    public partial class Authentication : PhoneApplicationPage
    {
        // Constructor
        public Authentication()
        {
            InitializeComponent();
        }

        private void appBarOkButton_Click(object sender, EventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/Main.xaml", UriKind.RelativeOrAbsolute));
        }

        private void LoadingPivotItem(object sender, PivotItemEventArgs e)
        {
            if (e.Item == home)
                ApplicationBar.IsVisible = true;
            else
                ApplicationBar.IsVisible = false;
        }

    }
    
}